//
//  UserModuleApi.h
//  DemoProject
//
//  Created by mouxiaochun on 16/3/17.
//  Copyright © 2016年 mmc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AIRequest.h"
#import "UserMethods.h" //引入接口名称头文件
#import "UserModuleResultParser.h"

static NSString *_userModuleName = @"User";//我们可以自定义一个模块名称



/**
 * 用户模块 API
 */
@interface UserModuleApi : NSObject
/**
 ** 司机注册
 ** phoneNo:    手机号码
 ** validCode : 验证码
 **/
+ (void)driverRegiser:(NSString *)phone code:(NSString *)code password:(NSString *)password type:(NSString *)type completion:(AICompletionBlock)block;


//验证码
+ (void)getValidCodeWithPhone:(NSString *)phone type:(NSString *)type state:(NSString *)state completion:(AICompletionBlock)block;



//登录
+ (void)userLogin:(NSString *)phone password:(NSString *)password completion:(AICompletionBlock)block;


//找回密码
+ (void)findPassword:(NSString *)phone smscode:(NSString *)smscode password:(NSString *)password type:(NSString *)type completion:(AICompletionBlock)block ;




//修改司机头像
+ (void)chageHeaderUrl:(NSString *)driverId fileName0:(NSString *)fileName0  completion:(AICompletionBlock)block;

//修改司机个人信息
//+ (void)chageDriverInfo:(NSString *)id nickname:(NSString *)nickname sex:(NSString *)sex perInfo:(NSString *)perInfo autograph:(NSString *)autograph completion:(AICompletionBlock)block;

//修改司机个人信息--昵称
+ (void)chageDriverNickNameWithDriverId:(NSString *)id nickname:(NSString *)nickname  completion:(AICompletionBlock)block;
//修改司机个人信息--性别
+(void)chageDriversexWithId:(NSString *)id sex:(NSString *)sex completion:(AICompletionBlock)block;
//修改司机个人信息--签名
+ (void)chageDriverAutographWithId:(NSString *)id autograph:(NSString *)autograph completion:(AICompletionBlock)block;
//修改司机个人信息--个人介绍
+ (void)chageDriverperInfoWithId:(NSString *)id perInfo:(NSString *)perInfo completion:(AICompletionBlock)block;


//修改司机绑定手机
+ (void)chageDriverWithDriverId:(NSString *)driverId oldTel:(NSString *)oldTel newTel:(NSString *)newTel codesms:(NSString *)codesms type:(NSString *)type completion:(AICompletionBlock)block;

//获取司机信息
+(void)getDriverInfo:(NSString *)driverId completion:(AICompletionBlock)block;

//修改司机登录密码
+ (void)changeDriverLoginPaw:(NSString *)driverId tel:(NSString *)tel oldpass:(NSString *)oldpass smscode:(NSString *)smscode newpass:(NSString *)newpass type:(NSString *)type completion:(AICompletionBlock)block;




  //获取司机全部评价
+(void)getDrivePingJiaWithDeiverId:(NSString *)driverId grade:(NSString *)grade pageIndex:(NSString *)pageIndex pageSize:(NSString *)pageSize completion:(AICompletionBlock)block;


@end
